package bear.bear.model;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <简述>
 * <详细描述>
 *
 * @author LiuShanshan
 * @version $Id$
 */
//@ConfigurationProperties("class")
@Component
public class Class {
    @Value("${class.age}")
    private Integer age;

    @Value("${class.name}")
    private String name;

    private List<String> student;

    public Class() {
    }

    public Class(Integer age, String name, List<String> student) {
        this.age = age;
        this.name = name;
        this.student = student;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getStudent() {
        return student;
    }

    public void setStudent(List<String> student) {
        this.student = student;
    }

    @Override
    public String toString() {
        return "Class{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", student=" + student +
                '}';
    }
}
